namespace go api

struct ListBusinessCertificateRequest {
    1: required i32 pageNum
    2: required i32 pageSize
    3: string sort
    4: BusinessCertificateData data
}

struct ListBusinessCertificateResponse {
	1: list<BusinessCertificateData> data
	2: i64 count
}

struct BusinessCertificateData {
	1:i64 id
	2: string created_at,
    3: string updated_at,
    4: i64 created_user_id,
    5: i64 updated_user_id,
    6: i64 organization_id,
    7: string updated_user_nickname,
    8: string created_user_nickname,
		9: string name
	10: string code
	11: string remark
	12: string attachment
	13: string dueDate
	14: i64 impendingReminderDays
	15: i64 status

}

struct BatchDeleteBusinessCertificateRequest {
    1: list<i64> ids
}

service BusinessCertificate {
    ListBusinessCertificateResponse listBusinessCertificate(1: ListBusinessCertificateRequest req)
    BusinessCertificateData getBusinessCertificate(1: BusinessCertificateData req)
    void addBusinessCertificate(1: BusinessCertificateData req)
    void editBusinessCertificate(1: BusinessCertificateData req)
    void deleteBusinessCertificate(1: i64 id)
    void batchDeleteBusinessCertificate(1: BatchDeleteBusinessCertificateRequest req)
}